function caldatetime(dt) {
    let Y = dt.substring(0, 4)
    let M = dt.substring(4, 6)
    let D = dt.substring(6, 8)
    let h = dt.substring(8, 10)
    let m = dt.substring(10, 12)
    let s = dt.substring(12, 14)
    return `${Y}/${M}/${D} ${h}:${m}:${s}`
}

// import {datetimeToStamp} from './timecal'
let {datetimeToStamp} = require('./timecal')

function caldatetime2(dt) {
    let Y = dt.substring(0, 4)
    let M = dt.substring(4, 6)
    let D = dt.substring(6, 8)
    let h = dt.substring(8, 10)
    let m = dt.substring(10, 12)
    let s = dt.substring(12, 14)
    let temp = `${Y}-${M}-${D} ${h}:${m}:${s}`
    return datetimeToStamp(temp)
}

// export default { caldatetime, caldatetime2 }
module.exports = {caldatetime,caldatetime2}
